import { EntitySchema } from '@mikro-orm/core';

export class ImsYzdKpGoodKm {
  id!: number;
  title!: string;
  addTime?: string;
  updateTime?: string;
  uniacid!: number;
  useExplain?: unknown;
  content?: unknown;
}

export const ImsYzdKpGoodKmSchema = new EntitySchema({
  class: ImsYzdKpGoodKm,
  properties: {
    id: { primary: true, type: 'number' },
    title: { type: 'string', length: 255 },
    addTime: { type: 'string', length: 255, nullable: true },
    updateTime: { type: 'string', length: 255, nullable: true },
    uniacid: { type: 'number' },
    useExplain: { type: 'unknown', columnType: 'longtext', nullable: true },
    content: { type: 'unknown', columnType: 'longtext', nullable: true },
  },
});
